<?php
    
    //these are pear items
    include_once( "XML/Tree.php" );
    include_once( "Mail.php" );
    



    include_once(CMS_HOME_DIR . "/lib/cmsGadgets.php");
    include_once(CMS_HOME_DIR . "/lib/cmsSearch.php");
    include_once(CMS_HOME_DIR . "/lib/cmsFormElement.php");
    include_once(CMS_HOME_DIR . "/lib/cmsDialogueBox.php");
   

    include_once(CMS_HOME_DIR . "/lib/cmsVariable.php");
    include_once(CMS_HOME_DIR . "/lib/cmsReplicate.php");
    include_once(CMS_HOME_DIR . "/lib/cmsAddControls.php");
    include_once(CMS_HOME_DIR . "/lib/cmsTree.php");
    

    
    //obejcts first - need to be loaded in order of inheretance.. BAH HUMBUG!!!
    include_once(CMS_HOME_DIR . "/lib/CmsKVC.php");	


	include_once(CMS_CONFIG_DIR . "/cmsMailoutConfig.php");    
    	include_once(CMS_CONFIG_DIR . "/cmsPageBuilderConfig.php");
    
    
    include_once(CMS_SITE_CONFIG_DIR . "cmsEcomSiteConfig.php");
    

    
    //db last..
    include_once(CMS_HOME_DIR . "/lib/CmsDatabaseConnection.php");
    include_once(CMS_HOME_DIR . "/lib/CmsTableWriter.php");


    if(defined("CMS_DOCUMENT_PATH")){
      include_once(CMS_DOCUMENT_PATH);
    }else{
     include_once(CMS_HOME_DIR . "/lib/CmsDocument.php");	
    }

    include_once(CMS_HOME_DIR . "/lib/cmsAuth.php");


?>